package com.dzb.langchain4j.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dzb.langchain4j.enums.AdmissionStatusEnum;
import lombok.Data;

import java.util.Date;

/**
 * 
 * @TableName s_admission_status
 */
@TableName(value ="s_admission_status")
@Data
public class AdmissionStatus {
    /**
     * 自增主键
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 姓名
     */
    @TableField(value = "name")
    private String name;

    /**
     * 年龄
     */
    @TableField(value = "age")
    private Integer age;

    /**
     * 地区
     */
    @TableField(value = "address")
    private String address;

    /**
     * 总分
     */
    @TableField(value = "score")
    private Integer score;

    /**
     * 录取状态:1-已录取;2-投档成功;3-滑档;4-退档;5-未知
     */
    @TableField(value = "admission_status")
    private Integer admissionStatus;

    /**
     * 是否删除:0-未删除;1-删除;
     */
    @TableField(value = "is_delete")
    private Integer isDelete;

    /**
     * 备注
     */
    @TableField(value = "remark")
    private String remark;

    /**
     * 
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 
     */
    @TableField(value = "update_time")
    private Date updateTime;
    
    /**
     * 获取录取状态中文描述
     */
    public String getAdmissionStatusDesc() {
        return AdmissionStatusEnum.getDescriptionByCode(this.admissionStatus);
    }
}